// função sem utilidade por enquanto//
function openAjax(){
    var ajax;
    try{
        ajax = new XMLHttpRequest();
    } catch(ee){
        try{
            ajax = new ActiveXObject("Msxm12.XMLHTTP");
        } catch(e){
            try {
                    ajax = new ActiveXObject("Microsoft.XMLHTTP");     
            } catch (E){
                    ajax = false;
              }
          }
    
    }
    return ajax;
}





function ajax(){
    if (window.XMLHttpRequest()){
        // code for IE7, Firefox, Chrome, Opera, Safari
        xmlhttp = new XMLHttpRequest();
    }else{
        // code for IE6, IE5
        xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
    }
    
    return xmlhttp;
}

function carregaAjax(obj,file,method,parametro){
    var xmlhttp
    xmlhttp = ajax();
    xmlhttp.onreadystatechange = function(){
        if (xmlhttp.readystate == 4 && xmlhttp.status == 200){
            obj.innerHTML = xmlhttp.responseText;
        }
    }
    
    xmlhttp.open(method,file,true);
    xmlhttp.send(parametro);
    return false;
}





